<?php

namespace app\common\model;

use think\Model;

class ShortUrlModel extends Model
{
    protected $name = 'short_url';

    public function setShortData(string $url, string $shortUrl, string $robotId, string $title)
    {
        $this->insert([
            'url' => $url,
            'short_url' => $shortUrl,
            'robot_wxid' => $robotId,
            'add_time' => time(),
            'title' => $title,
        ]);
    }

}